<?

if($telplgxEnable == 0) {
    $readonly = "readonly";
    $disabled = "disabled";
}else{
    $readonly = "";
    $disabled = "";
}

/*if($start_cat_valida == 1) {
  $JavaIA_check .= "
  if(forma.pregunta_cat14_0.checked==true){

  if((forma.telcasa".$row_01['id_GuionPregunta'].".value == '') && (forma.telcel".$row_01['id_GuionPregunta'].".value == '') && (error == 0)) {
                        fixElement(forma.telcasa".$row_01['id_GuionPregunta'].", \"".$row_01['msgObligatoria']."\");
                        error = 1;
                    }}
";
}*/

$campotelefono = "";

if($previewtel == 1) {
    $campotelefono .= "<table width=\"400\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
      <tr class=\"fondoBlanco\">
        <td width=\"100\"><div id=\"".$idChangeSize."\">Casa</div></td>
        <td width=\"180\"><input name=\"ladacasa".$row_01['id_GuionPregunta']."\" type=\"text\" size=\"5\" ".$readonly." ".$disabled." value=\"".$telCasa[0][0]."\" onChange=\"javascript:while(''+this.value.charAt(0)==' ')this.value=this.value.substring(1,this.value.length);\" onKeypress=\"if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;\">&nbsp;&nbsp;&nbsp;<input type=\"text\" name=\"telcasa".$row_01['id_GuionPregunta']."\" ".$readonly." ".$disabled." value=\"".$telCasa[0][1]."\" onChange=\"javascript:while(''+this.value.charAt(0)==' ')this.value=this.value.substring(1,this.value.length);\" onKeypress=\"if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;\"></td>
        <td width=\"18\" rowspan=\"2\" align=\"left\"><a href=\"javascript:;\" Alt=\"Calendario\" onclick=\"javascript:window.open('https://c3.cacto.com/mx/".$c3FolderName."/admin/guiones/plgx/lada.plgx.php','Lada','width=565,height=400,tolbars=no,scrollbars=1,status=0,resizable=0');\"><img src=\"https://c3.cacto.com/mx/".$c3FolderName."/images/iLada.gif\" alt=\"Lada\" border=\"0\"></a></td>
        <td width=\"102\" rowspan=\"2\" align=\"left\"><a href=\"javascript:;\" Alt=\"Calendario\" onclick=\"javascript:window.open('https://c3.cacto.com/mx/".$c3FolderName."/admin/guiones/plgx/lada.plgx.php','Lada','width=565,height=400,tolbars=no,scrollbars=1,status=0,resizable=0');\">Lada</a></td>
      </tr>
      <tr class=\"fondoBlanco\">
        <td><div id=\"".$idChangeSize."\">Celular</div></td>
        <td><input name=\"ladacel".$row_01['id_GuionPregunta']."\" type=\"text\" size=\"5\"  ".$readonly." ".$disabled." value=\"".$telCel[1][0]."\" onChange=\"javascript:while(''+this.value.charAt(0)==' ')this.value=this.value.substring(1,this.value.length);\" onKeypress=\"if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;\">&nbsp;&nbsp;&nbsp;<input type=\"text\" name=\"telcel".$row_01['id_GuionPregunta']."\" ".$readonly." ".$disabled." value=\"".$telCel[1][1]."\" onChange=\"javascript:while(''+this.value.charAt(0)==' ')this.value=this.value.substring(1,this.value.length);\" onKeypress=\"if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;\"></td>
      </tr>
	  <tr class=\"fondoBlanco\">
        <td><div id=\"".$idChangeSize."\">Trabajo</div></td>
        <td><input name=\"ladatrab".$row_01['id_GuionPregunta']."\" type=\"text\" size=\"5\"  ".$readonly." ".$disabled." value=\"".$telTrab[2][0]."\" onChange=\"javascript:while(''+this.value.charAt(0)==' ')this.value=this.value.substring(1,this.value.length);\" onKeypress=\"if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;\">&nbsp;&nbsp;&nbsp;<input type=\"text\" name=\"teltrab".$row_01['id_GuionPregunta']."\" ".$readonly." ".$disabled." value=\"".$telTrab[2][1]."\" onChange=\"javascript:while(''+this.value.charAt(0)==' ')this.value=this.value.substring(1,this.value.length);\" onKeypress=\"if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;\"></td>
      </tr>
    </table>";
}else{
     $campotelefono .= "Deshabilitado";
}

